<!DOCTYPE html  >
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script src="/js/model_view.js"></script>
<head th:include="/base/common_css('test')">

<body>
<div th:include="/base/common_banner"></div>

<!-- Header ends -->
<!-- Main content starts -->

<div class="content">

    <!-- Sidebar -->
    <!--menu ????-->
    <div th:include="/base/common_menu"></div>
    <!--menu????-->
    <!-- Sidebar ends -->

    <!-- Main bar -->
    <div class="mainbar">

        <!-- Page heading -->
        <div th:include="/base/common_pageHeader"></div>
        <!-- Page heading ends -->

        <div class="matter">
            <div class="container">
                <div class="row">

                    <div class="col-md-12">

                        <div class="widget">


                            <div class="widget-head">
                                <div class="pull-left">模特信息</div>
                                <div class="widget-icons pull-right">
                                    <div class="widget-icons pull-right">
                                        <button onclick="openPage('/view/saveModel')" class="btn btn-primary">新增</button>
                                        <!--<li><a href="/view/albumAdd"></a></li>-->
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>

                            <div class="widget-content medias">
                                <table border="1" style="table-layout:fixed" class="table table-condensed table-bordered table-hover table-striped">

                                    <thead>
                                    <tr>
                                        <th>
                            <span class="uni">
                              <input type='checkbox' value='check1'/>全选
                            </span>
                                        </th>
                                        <th>序号</th>
                                        <th>模特名字</th>
                                        <th>模特昵称</th>
                                        <th>性别</th>
                                        <th>体重(kg)</th>
                                        <th>身高(cm)</th>
                                        <th>腰围(cm)</th>
                                        <th>胸围(cm)</th>
                                        <th>臀围(cm)</th>
                                        <th>职业</th>
                                        <th>国家</th>
                                        <th>城市</th>
                                        <th>操作</th>
                                    </tr>
                                    <tr th:each="obj,objStat:${modelsList.list}">
                                        <th>
                            <span class="uni">
                              <input type='checkbox' value='check1'/>
                            </span>
                                        </th>
                                        <td th:text="${objStat.count}">123</td>
                                        <td th:text="${obj.modelName}" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">2223333333333333333333333</td>
                                        <td th:text="${obj.nickName}" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">2223333333333333333333333</td>
                                        <td th:text="${obj.sex} ? '男': '女'">123</td>
                                        <td th:text="${obj.weight}">123</td>
                                        <td th:text="${obj.height}">123</td>
                                        <td th:text="${obj.waistline}">123</td>
                                        <td th:text="${obj.bust}">123</td>
                                        <td th:text="${obj.hipline}">123</td>
                                        <td th:text="${obj.modelJob}">123</td>
                                        <td th:text="${obj.country}">123</td>
                                        <td th:text="${obj.city}">123</td>
                                        <td>
                                            <a th:href="@{'/view/saveModel?modelId='+${obj.modelId}}" class="btn btn-success">修改</a>&nbsp;&nbsp;&nbsp;
                                            <a th:href="@{'/view/deleteModel?modelId='+${obj.modelId}}" class="btn btn-danger">删除</a>
                                        </td>
                                    </tr>
                                    </thead>
                                </table>


                                <!--分页-->
                                <div class="widget-foot">
                                    <div id="page1">
                                        <input type="hidden" id="pageNumber" th:value="${modelsList.pageNum}">
                                        <input type="hidden" id="pageSize" th:value="${modelsList.pageSize}">
                                        <input type="hidden" id="totalPage" th:value="${modelsList.pages}">
                                        <input type="hidden" id="total" th:value="${modelsList.total}">
                                    </div>
                                </div>


                                <div class="clearfix"></div>




                        </div>
                    </div>

                    </table>
                </div>


            </div>
        </div>
    </div>
</div>
</div>


<!--footer-->
<div th:include="/base/common_footer"></div>
<!---->


<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>

<!--js????-->
<div th:include="/base/common_js"></div>
<!--js????-->

<!-- Script for this page -->
<script type="text/javascript">
    initPage('page1', '/view/modelList', {}, false);
</script>

</body>
</html>
